<?php
//应用程序入口
require dirname ( dirname ( __FILE__ ) ) . DIRECTORY_SEPARATOR . 'bootstrap.php';
if (isset ( $_GET ['url'] ) && $_GET ['url'] === 'favicon.ico') {
	return;
} else {
	//the request resouce
	$url = trim ( isset ( $_GET ['__url'] ) ? $_GET ['__url'] : (isset ( $_SERVER ['PATH_INFO'] ) ? ltrim ( $_SERVER ['PATH_INFO'], '/' ) : 'index.html'), '/' );
	$url = "/{$url}";
	$dispatcher = new Dispatcher ();
	$dispatcher->dispatch ( $url, true );
}
?>